package com.byls.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class LoginController {
    @RequestMapping("/login/{username}/{password}")
    public String Login(@PathVariable("username") String username, @PathVariable("password") String password) {
        if (username.equals("byls") && password.equals("byls256")) {
            return "success";
        }
        return "error";
    }
}
